import request from "@/utils/request";
export const login = (data) => {
  return request({
    url: "/user/login",
    method: "post",
    data,
  });
};

// admin
export const userinfo = () => {
  return request({
    url: "/user/userinfo",
    method: "get",
  });
};
// editor
export const editorUserinfo = () => {
    return request({
      url: "/user/editorUser",
      method: "get",
    });
  };
